using System;
using System.Workflow.ComponentModel.Design;
using System.Workflow.ComponentModel;
using System.Workflow.Activities;

namespace OWA.Activities
{
    class PackageScopeDesigner
        : SequenceDesigner
    {
        public override bool CanInsertActivities(HitTestInfo insertLocation, 
            System.Collections.ObjectModel.ReadOnlyCollection<Activity> activitiesToInsert)
        {
            bool canInsert = true;
            foreach (Activity activity in activitiesToInsert)
            {
                if (activity is AbstractPackageActivity == false)
                {
                    canInsert = false;
                    break;
                }
            }
            return canInsert;
        }
    }
}
